import axios from '@/utils/request'

export const getPermissionList = () => axios.get('/sys/permission')
export const getPermission = id => axios.get(`/sys/permission/${id}`)
export const addPermission = data => axios.post('/sys/permission', data)
export const delPermission = id => axios.delete(`/sys/permission/${id}`)
export const editPermission = (id, data) => axios.put(`/sys/permission/${id}`, data)
export const getPermissionItem = id => axios.get(`/sys/permission/${id}`)
